﻿package view.monsters
{
	import flash.display.MovieClip;
	import flash.text.TextField;
	[Embed(source="../../../lib/TimeSaver.swf", symbol="classes.Mushroom")]
	public class Mushroom extends Monster
	{
		
		public function Mushroom()
		{
			// constructor code
			m_Speed = 10;
			m_Attack = 5;//默认攻击
			this.attackBox = MovieClip(this.getChildByName("attackBox"));
			this.bodyBox = MovieClip(this.getChildByName("bodyBox"));
			life = Life(this.getChildByName("life"));
			life.setMaxLife(80);
			life.setCurLife(80);
		}

		public function setRandom():int
		{
			var att:int = int(Math.random() * 5 + 1);
			return att;
		}
	}

}